import axios from '../../utils/request'
//  获取商品列表
function getShopList(query){
    // 返回一个等待中的promise
    // /shop/list?id=1&name=kkk ==== {params:{id:1,name:'kkk'}}
    return axios.get('/shop/list', {params:query})
}
function getShopDetail(id){
    // 返回一个等待中的promise
    // /shop/list?id=1&name=kkk ==== {params:{id:1,name:'kkk'}}
    return axios.get('/shop/detail/'+id)
}
export default {
    getShopList,
    getShopDetail
}